package com.wangjiyuan.shiwupai.ui_food.food;

import com.wangjiyuan.shiwupai.bean.first_food.FoodBean;
import com.wangjiyuan.shiwupai.http.HttpInterfaces;
import com.wangjiyuan.shiwupai.http.HttpUtils;

import java.util.Map;

import rx.Observable;

/**
 * Created by QXL on 2016/11/28.
 */

public class FoodModel implements FoodContract.IFoodModel {
    @Override
    public Observable<FoodBean> getFoodObservable(Map<String, String> foodMap) {

        HttpInterfaces httpInterfaces = HttpUtils.getInstance().getHttpInterfaces();
        Observable<FoodBean> foodObservable = httpInterfaces.getFoodObservable("categories","list",foodMap);
        return foodObservable;
    }
}
